﻿@model VoiceAd.Models.tblServices
@{
    ViewBag.Title = "Thêm mới dịch vụ";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<script src="@Url.Content("~/Content/fckeditor/fckeditor.js")" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function () {
        var oEditVn = new FCKeditor('Body_Vn');
        oEditVn.BasePath = "@Url.Content("~/Content/fckeditor/")";
        oEditVn.Height = 400;
        oEditVn.ReplaceTextarea();

        var oEditEn = new FCKeditor('Body_En');
        oEditEn.BasePath = "@Url.Content("~/Content/fckeditor/")";
        oEditEn.Height = 400;
        oEditEn.ReplaceTextarea();
    }
</script>
<script type="text/javascript">
    $(function () {
        $("#CreateDate").datepicker({
            showOn: "button",
            dateFormat: 'yy-mm-dd',
            buttonImage: "@Url.Content("~/Content/images/calendar.gif")",
            buttonImageOnly: true
        });
    });
</script>
<h2>
    Thêm mới dịch vụ</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông tin</legend>
        <div class="editor-label">
            Tiêu đề (Vi)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title_Vn)
            @Html.ValidationMessageFor(model => model.Title_Vn)
        </div>
        <div class="editor-label">
            Tiêu đề (En)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title_En)
            @Html.ValidationMessageFor(model => model.Title_En)
        </div>
        <div class="editor-label">
            Nội dung (Vi)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body_Vn)
            @Html.ValidationMessageFor(model => model.Body_Vn)
        </div>
        <div class="editor-label">
            Nội dung (Vn)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body_En)
            @Html.ValidationMessageFor(model => model.Body_En)
        </div>
        <div class="editor-label">
            Ngày tạo
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreateDate)
            @Html.ValidationMessageFor(model => model.CreateDate)
        </div>
        <p>
            <input type="submit" value="Thêm mới" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Danh mục dịch vụ", "Services")
</div>
